/**
 * xiaoming 20120702
 */
	$(function(){
  		var fontsizecookie=$.cookies.get('param');
  		if(fontsizecookie !=null)
  			{
  				//W$(".main").css("font-size",fontsizecookie);
  			}
		  	//var coeficient=302/435*1.48
  		 var coeficient=0.694;
			
			var width=$(window).width();
		   var height=$(window).height();
			var top=height*1.12*307/915;
			var widhtdiv=width*0.25;
			var mensecheight=widhtdiv*coeficient	
			var mainheight=parseInt(height/2);			
			$(".principal").css("top",mensecheight+"px");//0k
			var fontsizepp= fontpourcentage(width)//;
			$(".listmenu_2").css("font-size","12px")
			
			$(".listmenu_2").css("width","135px");
			$(".LogoAndList").css("width","265px");
			$(".LogoAndList").css("height","180px");
			$(".main").css("margin-left","265px");
			$(".main").css("height","500px");
			$(".listemenuUl").css("margin-top","49px");
			var popimage=proposition(width)+"%";
			//$(".logo").attr("width",popimage);
			$(".logo").css("margin-top","1.75px");
			$(".main").css("font-size","100%");
			$.cookies.set('param',"100%");
		
  			
			
				$(window).resize(function() {
					
					 var coeficient=0.694;
						
						var width=$(window).width();
					   var height=$(window).height();
						var top=height*1.12*307/915;
						var widhtdiv=width*0.25;
						var mensecheight=widhtdiv*coeficient	
						var mainheight=parseInt(height/2);			
						$(".principal").css("top",mensecheight+"px");//0k
						var fontsizepp= fontpourcentage(width)//;
						$(".listmenu_2").css("font-size","12px")
						
						$(".listmenu_2").css("width","135px");
						$(".LogoAndList").css("width","265px");
						$(".LogoAndList").css("height","180px");
						$(".main").css("margin-left","265px");
						$(".main").css("height","500px");
						$(".listemenuUl").css("margin-top","49px");
						var popimage=proposition(width)+"%";
						//$(".logo").attr("width",popimage);
						$(".logo").css("margin-top","1.75px");
						$(".main").css("font-size","100%");
						$.cookies.set('param',"100%");
					
					
				});
			
			
		})
				function fontpourcentage(currentpagesizel)
		{
			var currentimagesize_w=parseInt(currentpagesizel/17510*100*10);
			var pourcentage=currentimagesize_w+"%"
			return pourcentage;
					
		}
		function proposition(currentpagesizel)
		{
			var currentimagesize_w=parseInt(currentpagesizel/17510*100*10)*0.60;
			return currentimagesize_w;
		}
		